const https = require('https');
const fs = require('fs');

const options = {
    //需要自己生成加密Key
   // hostname: '127.0.0.1',
  //  port: 443,
  //  path: '/'
};

https.createServer(options, (req, res) => {
    res.writeHead(200);
    res.end('hello world\n');
}).listen(8000);

console.log('Server running at https://127.0.0.1:8000/');